package com.jingdianjichi.auth.domain.convert;

import com.jingdianjichi.auth.domain.entity.AuthRoleBO;
import com.jingdianjichi.auth.domain.entity.AuthUserBO;
import com.jingdianjichi.auth.infra.basic.entity.AuthRole;
import com.jingdianjichi.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthRoleConverter {
    AuthRoleConverter INSTANCE = Mappers.getMapper(AuthRoleConverter.class);
    AuthRole converterBoToAuthUser(AuthRoleBO authRoleBO);
    AuthRoleBO authUserToAuthUserDTO(AuthRole authRole);
}
